import {request} from '../../request/request'
Page({
    data: {
        commodity:[]
    },
    commodity_id:'',
    onLoad: function (options) {
        this.commodity_id = options.id;
        this.getCommodity();
    },
    getCommodity(){
        request({
          url: "/query-vegetable-details?id="+this.commodity_id
        }).then((result)=>{
          console.log(result);
          this.setData({
            commodity:result.data
          })
        })
      }
})